package cn.highedu.coolsharkhub.entity.dto;

/**
 * 用户数据传输对象
 * 用于用户登录的信息传递
 */
public class UserLoginDTO {
    private String username;
    private String password;
    // 默认的构造 包含所有参数的构造 get和set方法 toString()方法
    public UserLoginDTO() {
    }

    public UserLoginDTO(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserLoginDTO{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
